package com.iscas.tech.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import io.geekidea.springbootplus.framework.common.entity.BaseEntity;
import io.geekidea.springbootplus.framework.validator.groups.Update;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotNull;
import java.util.Date;

/**
 * 科技成果图片信息表
 *
 * @author yangyi
 * @since 2020-10-26
 */
@Data
@Accessors(chain = true)
@EqualsAndHashCode(callSuper = true)
@ApiModel(value = "AtStpic对象")
public class AtStpic extends BaseEntity {
    private static final long serialVersionUID = 1L;

    @NotNull(message = "id不能为空", groups = {Update.class})
    @ApiModelProperty("主键ID")
    @TableId(value = "id", type = IdType.AUTO)
    private Integer id;

    @NotNull(message = "科技成果id（对应科技成果表id）不能为空")
    @ApiModelProperty("科技成果id（对应科技成果表id）")
    private Integer stId;

    @NotNull(message = "所属类型（1:评估价值 2:技术图片 3:成熟度证明 4:水平评价）不能为空")
    @ApiModelProperty("所属类型（1:评估价值 2:技术图片 3:成熟度证明 4:水平评价）")
    private Integer pType;

    @NotBlank(message = "图片地址不能为空")
    @ApiModelProperty("图片地址")
    private String pUrl;

    @ApiModelProperty("删除状态（1存在，0刪除）")
    private Integer delstatus;

    @ApiModelProperty("创建人")
    private Integer createtitle;

    @ApiModelProperty("提交交易创建时间")
    private Date createtime;

}
